package com.liezh.state;

/**
 * @author liezh
 * @date 2021-10-29
 */
public class AcknowledgedState implements PackageState {
    //Singleton
    private static AcknowledgedState instance = new AcknowledgedState();
    private AcknowledgedState() {}
    public static AcknowledgedState instance() {
        return instance;
    }

    @Override
    public void updateState(PackageContext ctx) {
        System.out.println("=== state start...");
        System.out.println("1 - Package is acknowledged !!");
        ctx.setCurrentState(WarehouseProcessingState.instance());
    }
}
